package assignment11;

import java.io.Serializable;

public class Book implements Serializable{
	int id;
	String name;
	String author;
	float price;
	//transient 和 static 类型不会自动保存
	public Book(int id,String name,String author,float price) {
		this.id=id;
		this.name=name;
		this.author=author;
		this.price=price;
	}
}